<?php

$qTypes = explode(",",$site_settings['question_types']);
$qTypes = array_combine($qTypes,$qTypes);
$qTypes['options'] = 'Multiple Choice';
?>
<div class="parts form">
<?php echo $this->Form->create('Part');?>
	<fieldset>
		<legend><?php __('Admin Edit Part'); ?></legend>
	<?php
		echo $this->Form->input('id');
		echo $this->Form->input('batch_id',array('type'=>'hidden'));
		echo $this->Form->input('name');
        echo $this->Form->input('type',array('label'=>'Type','type'=>'select','options'=>$qTypes));
		echo $this->Form->input('status',array('label'=>'Status','type'=>'select','options'=>array('active'=>'Active','inactive'=>'Inactive')));
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit', true));?>
</div>
